import request from '@/utils/request'

//查询所有活动
export function indexActivityies(data) {
  return request({
    url: '/user/activity/',
    method: 'get',
    data
  })
}

//查询单个活动
export function itemActivity(params) {
  return request({
    url: '/user/activity/item',
    method: 'get',
    params
  })
}

//报名活动
export function enroll(data) {
  return request({
    url: '/user/activity/enroll',
    method: 'post',
    data
  })
}
